import java.util.Scanner;

/*
    等腰三角形
 */
public class test11 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int sum = 4 * (n - 1);
        String str="";
        for (int i = 1; str.length() < sum; i++) {
            str = str + String.valueOf(i);
        }
        char[] ch = str.substring(0,sum).toCharArray();

        for (int i = 0; i < n-1; i++) {
            System.out.print(".");
        }
        System.out.println(1);

        //打印2到n-1行
        for (int i = 1; i < n-1; i++) {
            for (int j = 0; j < n-i-1; j++) {
                System.out.print(".");
            }
            System.out.print(ch[i]);

            for (int j = 0; j < i*2-1; j++) {
                System.out.print(".");
            }
            System.out.println(ch[sum-i]);

        }

        //打印最后一行4*n-4-(n-2)=3*n-2
        for (int i = n-1; i < 3*n-2; i++) {
            System.out.print(ch[i]);
        }

    }
}
